import React from 'react'
import {createStackNavigator, createBottomTabNavigator} from 'react-navigation'
import colors from '../common/colors'


import Index from '../screens/Index'
import Notice from '../screens/Notice'
import Mine from '../screens/Mine'
import RealseTask from '../screens/RealseTask'
import Splash from '../screens/Splash'

import Login from '../screens/Login'
import Register from "../screens/Register";
import RegisterInfo from "../screens/RegisterInfo";
import Settings from "../screens/Settings";
import WeatherList from "../screens/WeatherList";
import WeatherImage from "../screens/WeatherImage";
import GlobalMap from "../screens/GlobalMap";
import ShuZhiYuBao from "../screens/ShuZhiYuBao";
import YuBaoDetail from "../screens/YuBaoDetail";
import HuanJingJianCe from "../screens/HuanJingJianCe";
import AutoJianCe from "../screens/AutoJianCe";
import JianCeZhan from "../screens/JianCeZhan";
import ZaiHaiList from "../screens/ZaiHaiList";
import ZaiHaiDetail from "../screens/ZaiHaiDetail";
import ZaiHaiChuLiLuRu from "../screens/ZaiHaiChuLiLuRu";
import ZaiHaiMap from "../screens/ZaiHaiMap";
import ZaiHaiZhiPai from "../screens/ZaiHaiZhiPai";
import QinShiList from "../screens/QinShiList";
import QinShiDetail from "../screens/QinShiDetail";
import QinShiLuRu from "../screens/QinShiLuRu";
import ZaiHaiMap2 from "../screens/ZaiHaiMap2";
import ZaiHaiLuRu from "../screens/ZaiHaiLuRu";
import TaskDetail from "../screens/TaskDetail";
import NoticeDetail from "../screens/NoticeDetail";
import SystemNotice from "../screens/SystemNotice";
import TaskList from "../screens/TaskList";
import UpdatePass from "../screens/UpdatePass";
import TaskLuRu from "../screens/TaskLuRu";


const Tab = createBottomTabNavigator({
    Index: {screen: Index},
    Notice: {screen: Notice},
    RealseTask: {screen: RealseTask},
    Mine: {screen: Mine},
}, {
    tabBarOptions: {
        activeTintColor: colors.primaryColor,
        tabStyle: {
            backgroundColor: '#fff'
        },
        style : {
            backgroundColor: '#fff'
        }
    },
    animationEnabled: false,
    swipeEnabled: false,
    lazy: false,
    initialRouteName: 'Index',
});

export const AppNavigator = createStackNavigator({
    Splash: {screen: Splash},
    Tab: {
        screen: Tab,
        navigationOptions: {header: null}
    },
    Login: {screen: Login},
    Register: {screen: Register},
    RegisterInfo: {screen: RegisterInfo},
    Settings: {screen: Settings},
    WeatherList: {screen: WeatherList},
    WeatherImage: {screen: WeatherImage},
    GlobalMap: {screen: GlobalMap},
    ShuZhiYuBao: {screen: ShuZhiYuBao},
    YuBaoDetail: {screen: YuBaoDetail},
    HuanJingJianCe: {screen: HuanJingJianCe},
    AutoJianCe: {screen: AutoJianCe},
    JianCeZhan: {screen: JianCeZhan},
    ZaiHaiList: {screen: ZaiHaiList},
    ZaiHaiDetail: {screen: ZaiHaiDetail},
    ZaiHaiChuLiLuRu: {screen: ZaiHaiChuLiLuRu},
    ZaiHaiMap: {screen: ZaiHaiMap},
    ZaiHaiZhiPai: {screen: ZaiHaiZhiPai},
    QinShiList: {screen: QinShiList},
    QinShiDetail: {screen: QinShiDetail},
    QinShiLuRu: {screen: QinShiLuRu},
    ZaiHaiMap2: {screen: ZaiHaiMap2},
    ZaiHaiLuRu: {screen: ZaiHaiLuRu},
    TaskDetail: {screen: TaskDetail},
    NoticeDetail: {screen: NoticeDetail},
    SystemNotice: {screen: SystemNotice},
    TaskList: {screen: TaskList},
    UpdatePass: {screen: UpdatePass},
    TaskLuRu: {screen: TaskLuRu},
});